package ooday01;
/** Car类的测试类 */
public class CarTest {
    public static void main(String[] args) {
        Car car1 = new Car();
        car1.brand = "兰博基尼";
        car1.color = "银";
        car1.price = 380;
        car1.start();
        car1.run();
        car1.stop();

        Car car2 = new Car("道奇","黑",240);
        car2.start();
        car2.run();
        car2.stop();

        Car car3 = new Car("迈凯伦","灰",320);
        car3.start();
        car3.run();
        car3.stop();

        Car car4 = new Car("阿斯顿马丁","白",445);
        car4.start();
        car4.run();
        car4.stop();

        Car car5 = new Car("柯尼塞格","蓝",1980);
        car5.start();
        car5.run();
        car5.stop();
    }
}
